/**
 *  @file SDLSplashSection.h
 *
 *  @date 21-nov-2009
 *  @author Ives van der Flaas
 */

#ifndef SDLSPLASHSECTION_H_
#define SDLSPLASHSECTION_H_

#include "SDLApplicationSection.h"
#include "SDLApplication.h"
#include "SDLStaticRepresentation.h"
#include "SDLImageRepresentation.h"
#include "SDLWindow.h"

namespace si_sdl
{
/**
 * Fades into a nice image and then goes forward to intro.
 */
class SDLSplashSection: public si_sdl::SDLApplicationSection
{
public:
	SDLSplashSection(SDLApplication& parent, SDLWindow& win);
	virtual ~SDLSplashSection();

	virtual void newFrame(double timeSinceLastFrame);
	virtual void onSDLEvent(SDL_Event& event);

private:
	SDLImageRepresentation fRepresentation;

	double fOpacity;

};

}

#endif /* SDLSPLASHSECTION_H_ */
